package com.tjh.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tjh.common.utils.PageUtils;
import com.tjh.gulimall.product.entity.CategoryEntity;
import com.tjh.gulimall.product.vo.Catelog2Vo;

import java.util.List;
import java.util.Map;

/**
 * Create by koala on 2021-01-24 21:36:11
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    //day05
    List<CategoryEntity> listWithTree();

    //day08
    void removeMenuByIds(List<Long> asList);

    //day19
    Long[] findCatelogPath(Long catelogId);

    //day22
    void updateCascade(CategoryEntity category);

    //day57
    List<CategoryEntity> getLevel1Categoryes();

    //day58
    Map<String, List<Catelog2Vo>> getCatalogJson();
}

